package com.example.mahjong.model.card;

import java.util.ArrayList;
import java.util.List;

import com.example.mahjong.tool.debug.DebugUtil;

import android.util.Log;

public class CNCards {
	
	public static final int CNCardCount = 34;
	
	public CNCards(){
		cnCardsList = new ArrayList<CNCardName>();
		cnCardsList.add(CNCardName.ONEWAN);
		cnCardsList.add(CNCardName.TWOWAN);
		cnCardsList.add(CNCardName.THREEWAN);
		cnCardsList.add(CNCardName.FOURWAN);
		cnCardsList.add(CNCardName.FIVEWAN);
		cnCardsList.add(CNCardName.SIXWAN);
		cnCardsList.add(CNCardName.SEVENWAN);
		cnCardsList.add(CNCardName.EIGHTWAN);
		cnCardsList.add(CNCardName.NINEWAN);
		
		cnCardsList.add(CNCardName.ONETIAO);
		cnCardsList.add(CNCardName.TWOTIAO);
		cnCardsList.add(CNCardName.THREETIAO);
		cnCardsList.add(CNCardName.FOURTIAO);
		cnCardsList.add(CNCardName.FIVETIAO);
		cnCardsList.add(CNCardName.SIXTIAO);
		cnCardsList.add(CNCardName.SEVENTIAO);
		cnCardsList.add(CNCardName.EIGHTTIAO);
		cnCardsList.add(CNCardName.NINETIAO);
		
		cnCardsList.add(CNCardName.ONETONG);
		cnCardsList.add(CNCardName.TWOTONG);
		cnCardsList.add(CNCardName.THREETONG);
		cnCardsList.add(CNCardName.FOURTONG);
		cnCardsList.add(CNCardName.FIVETONG);
		cnCardsList.add(CNCardName.SIXTONG);
		cnCardsList.add(CNCardName.SEVENTONG);
		cnCardsList.add(CNCardName.EIGHTTONG);
		cnCardsList.add(CNCardName.NINETONG);
		
		cnCardsList.add(CNCardName.EAST);
		cnCardsList.add(CNCardName.SOUTH);
		cnCardsList.add(CNCardName.WEST);
		cnCardsList.add(CNCardName.NORTH);
		cnCardsList.add(CNCardName.MIDDLE);
		cnCardsList.add(CNCardName.EXPOSE);
		cnCardsList.add(CNCardName.BOARDS);
		
		for(int i=0;i<CNCardCount;i++){
			DebugUtil.v("the ca is "+i+"  "+cnCardsList.get(i).ordinal()+"   "+cnCardsList.get(i).toString());
		}
	}
	
	public static CNCards getInstance(){
		if(cnCards==null)
			cnCards = new CNCards();
		return cnCards;
	}
	
	public List<CNCardName> getCardsList(){
		return cnCardsList;
	}
	
	private static CNCards cnCards;
	private List<CNCardName> cnCardsList; 
}
